// $Id$
// Licensed under Apache License Version 2.0
// See: http://www.apache.org/licenses/LICENSE-2.0.html
package de.servicezombie.tcmdb.service;

import de.servicezombie.tcmdb.rest.vo.WsTestExecution;
import de.servicezombie.tcmdb.rest.vo.WsTestcaseDefinition;

public interface TestExecutionManipulationService { 
	
	/**
	 * read all values from definition and save them in an execution document
	 * @return a valid empty execution document, not persisted yet.
	 */
	WsTestExecution buildInstanceBy(WsTestcaseDefinition definition);
	
	/**
	 * 
	 * @param from template whoose values will be used to create the new document
	 * @param into values from template will be stored into this bean.
	 */
	void copy(WsTestExecution from, WsTestExecution into, FieldCopyStrategy strategy);

}
